package com.attilax.core;

import java.util.List;

import com.google.common.collect.Lists;

public class argsUtil {

	public static String[] toStrArr(String string) {
		List li=Lists.newArrayList();
		String[] a=string.split(" ");
		for (String string2 : a) {
			if(string2.trim().length()>0)
				li.add(string2);
		}
		
		
		return li2arr(li);
	}

	public static String[] li2arr(List li) {
		return (String[]) li.toArray(new String[li.size()]);
	}

}
